/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.admin.vo.contract.ContractExtVo;

/**
 * 合同保养类型实体类
 *
 * @author ysq
 * @since 2024-03-08
 */
@Data
@TableName(value = "blade_maintain_contract_type",autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MaintainContractType对象", description = "合同保养类型")
public class MaintainContractType extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 保养类型名称
	*/
		@ApiModelProperty(value = "保养类型名称")
		private String name;
	/**
	* 1:部分配件2:全部配件3:不包配件
	*/
		@ApiModelProperty(value = "1:部分配件2:全部配件3:不包配件")
		private Integer changeType;
	/**
	* 1:金额限制2:清单限制
	*/
		@ApiModelProperty(value = "1:金额限制2:清单限制")
		private Integer changeRestrictType;
	/**
	* 1:清单内更换2:清单内不更换
	*/
		@ApiModelProperty(value = "1:清单内更换2:清单内不更换")
		private Integer changeListType;
	/**
	* 配件金额
	*/
		@ApiModelProperty(value = "配件金额")
		private BigDecimal partPrices;
	/**
	* 配件金额类型1:以内更换2:以上不更换
	*/
		@ApiModelProperty(value = "配件金额类型1:以内更换2:以上不更换")
		private Integer partPricesType;

		@ApiModelProperty(value = "附件地址")
		@TableField(typeHandler = JacksonTypeHandler.class)
		private List<ContractExtVo> extUrls = new ArrayList<>();

}
